/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package modelo.personas;

import java.util.Set;
import javax.persistence.Entity;

/**
 *
 * @author Raul
 */

@Entity
public class PersonaJuridica extends Persona{
    
    private String razonSocial;
    private String denominacionComercial;
    private String cuit;
    private boolean habilitada = true;
    
    public PersonaJuridica() {
    }

    public String getCuit() {
        return cuit;
    }

    public void setCuit(String cuit) {
        this.cuit = cuit;
    }

    public String getDenominacionComercial() {
        return denominacionComercial;
    }

    public void setDenominacionComercial(String denominacionComercial) {
        this.denominacionComercial = denominacionComercial;
    }

    public boolean isHabilitada() {
        return habilitada;
    }

    public void setHabilitada(boolean habilitada) {
        this.habilitada = habilitada;
    }

    public String getRazonSocial() {
        return razonSocial;
    }

    public void setRazonSocial(String razonSocial) {
        this.razonSocial = razonSocial;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null || !(obj instanceof PersonaJuridica)) {
            return false;
        }
        final PersonaJuridica other = (PersonaJuridica) obj;
        if ((this.razonSocial == null) ? (other.getRazonSocial() != null) : !this.razonSocial.equals(other.getRazonSocial())) {
            return false;
        }
        if ((this.cuit == null) ? (other.getCuit() != null) : !this.cuit.equals(other.getCuit())) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 97 * hash + (this.razonSocial != null ? this.razonSocial.hashCode() : 0);
        hash = 97 * hash + (this.cuit != null ? this.cuit.hashCode() : 0);
        return hash;
    }
    
    
}
